package com.example.todolist.service;

import com.example.todolist.dto.business.PublishDynamicDTO;
import com.example.todolist.model.Dynamic;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.todolist.response.BaseResponse;
import com.example.todolist.response.SystemResponse;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author admin
 * @since 2022-02-25
 */
public interface DynamicService extends IService<Dynamic> {

    /**
     * 发动态
     * @param dto
     * @return
     */
    BaseResponse publishDynamic(PublishDynamicDTO dto);

    /**
     * 获取所有动态
     * @return
     */
    SystemResponse<List<Dynamic>> selectAllDynamicList();

    /**
     * 根据动态id获取动态详情
     * @param dynamicId
     * @return
     */
    SystemResponse<List<Dynamic>> findDynamicById(String dynamicId);

    SystemResponse<List<Dynamic>> personalDynamic();

    BaseResponse deleteDynamic(String dynamicId);
}
